
public class JNIDemo {
	static {
		//1. load C library
		System.loadLibrary("native");  //libnative.so

	}
	//declare the function hello() ,no definition ,the definition is C program
	//public native static void hello();  
	public native void hello();  
	public native int  hello(String str , int[] a);
	public static void main(String args[]) {
		JNIDemo d = new JNIDemo();
		

		//2. map java hello <----> C hello

		//3. call
		d.hello();
	}
	
}











